package com.ecloud.aiassistantbackground.model.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author Squbirreland
 * @since 2021-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("assistant_order")
@ApiModel(value = "Order对象", description = "订单表")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "优惠券id")
    private Integer couponId;

    @ApiModelProperty(value = "捆绑包id")
    private Integer bundleId;

    @ApiModelProperty(value = "订单原价")
    private BigDecimal orderOriginPrice;

    @ApiModelProperty(value = "订单最终价格")
    private BigDecimal orderFinalPrice;

    @ApiModelProperty(value = "订单生成时间")
    private LocalDateTime orderCreateTime;

    @ApiModelProperty(value = "订单支付完成时间 也就是生效开始")
    private LocalDateTime orderFinishTime;

    @ApiModelProperty(value = "订单状态 0未支付 1已支付")
    private String orderStatus;

    @ApiModelProperty(value = "备用字段1")
    private String orderReserve1;

    @ApiModelProperty(value = "备用字段2")
    private String orderReserve2;

}
